package com.eve.crp;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;


public class Client implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String firstname;
    private String lastname;
    private Date birthdate;
    private Date needDate;
    private Date createdDate;
    private String street;
    private Integer city;
    private Integer needCategory;
    private String needDescription;
	private int zip;
    private int numOfChildren;
    private Boolean disabled;
    private Boolean veteran;
	
	public Integer getNeedCategory() {
		return needCategory;
	}
	public Date getNeedDate() {
		return needDate;
	}
	public void setNeedDate(Date needDate) {
		this.needDate = needDate;
	}
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public String getNeedDescription() {
		return needDescription;
	}
	public void setNeedDescription(String needDescription) {
		this.needDescription = needDescription;
	}
	public void setNeedCategory(Integer needCategory) {
		this.needCategory = needCategory;
	}
	
	public Boolean getDisabled() {
		return disabled;
	}
	public int getDisabledInt(){
		int returnValue = 0;
		if(!disabled){
			returnValue = 1;
		}
		return returnValue;
	}
	public void setDisabled(Boolean disabled) {
		this.disabled = disabled;
	}
	public Boolean getVeteran() {
		return veteran;
	}
	public int getVeteranInt(){
		int returnValue = 0;
		if(!veteran){
			returnValue = 1;
		}
		return returnValue;
	}
	public void setVeteran(Boolean veteran) {
		this.veteran = veteran;
	}
	public int getNumOfChildren() {
		return numOfChildren;
	}
	public void setNumOfChildren(int numOfChildren) {
		this.numOfChildren = numOfChildren;
	}
	public Date getBirthdate() {
		return birthdate;
	}
	
	public String getBirthdateString(){
		SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
		return dateFormat.format(birthdate);
	}
	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public Integer getCity() {
		return city;
	}
	public void setCity(Integer city) {
		this.city = city;
	}
	public int getZip() {
		return zip;
	}
	public void setZip(int zip) {
		this.zip = zip;
	}
	public String getFirstname() {
		return firstname;
	}
	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}
	public String getLastname() {
		return lastname;
	}
	public void setLastname(String lastname) {
		this.lastname = lastname;
	}
}
